﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telphone=no, email=no, address=no">
<meta name="msapplication-tap-highlight" content="no">
<meta http-equiv="Cache-Control" content="no-cache">
<title>采集开关</title>
<script type="text/javascript">

function is_weixin(){
    var ua = navigator.userAgent.toLowerCase(); //判断浏览器的类型
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
        return true;
    } else {
        return false;
    }
}
 
if (!is_weixin()) { // 如果不是微信内置浏览器，就动态跳转到以下页面
    window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdf3f22ebfe96b912&redirect_uri=xxx&response_type=code&scope=snsapi_base&state=hyxt#wechat_redirect';
}


var docEl = document.documentElement;
var docW = docEl.clientWidth < 415 ? docEl.clientWidth : 414;
docEl.style.fontSize = docW / 7.5 + 'px';
</script>
<style type="text/css">
body , html { color:#666; height:100%; font-family:"Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; line-height:24px; font-size:0.96rem; font-size:16px; }
* { -webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
button , input { -webkit-tap-highlight-color:transparent; }
button , input  { margin:0; color:inherit; outline:0; }
form { width:100%; }
h1 { font-size:16px; font-weight:normal; text-align:center; background:#e62129; padding:5px 0; color:#ffffff; }
dl {display: flex; align-items: center; justify-content: flex-start; width:80%; margin:0 10%; border-bottom:1px solid #f1f1f1; padding:12px 0; }
dt { width:100px; color:#000000; }
dd {flex:1;}
.submit { border:1px solid #e62129; margin:0 20%; border-radius:10px; padding:10px 0; background:#fff; font-size:16px; font-weight:bold; color:#e62129; width:60%; resize:none; }
.radio-label { margin-right:20px;}
.radio {
 
}
.radio input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.radio input[type="radio"] + .radio-label:before {
  content: '';
  background: #f4f4f4;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 20px;
  margin-right:5px;
  height: 20px;
  position: relative;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  -webkit-transition: all 250ms ease;
  transition: all 250ms ease;
}
.radio input[type="radio"]:checked + .radio-label:before {
  background-color: #e62129;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type="radio"]:focus + .radio-label:before {
  outline: none;
  border-color: #e62129;
}
.radio input[type="radio"]:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type="radio"] + .radio-label:empty:before {
  margin-right: 0;
}
</style>
</head>

<body>

<form method="post">
	<h1>快讯抓取</h1>
	<dl>
		<dt>新浪</dt>
		<dd class="radio">
			<input type="radio" name="sina" id="sina_1" value="enabled" />
			<label for="sina_1" class="radio-label">开</label>
			<input type="radio" name="sina" id="sina_0" value="disabled" />
			<label for="sina_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>财联社</dt>
		<dd class="radio">
			<input type="radio" name="cls" id="cls_1" value="enabled" />
			<label for="cls_1" class="radio-label">开</label>
			<input type="radio" name="cls" id="cls_0" value="disabled" />
			<label for="cls_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>汇通网</dt>
		<dd class="radio">
			<input type="radio" name="fx678" id="fx678_1" value="enabled" />
			<label for="fx678_1" class="radio-label">开</label>
			<input type="radio" name="fx678" id="fx678_0" value="disabled" />
			<label for="fx678_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>上证资讯</dt>
		<dd class="radio">
			<input type="radio" name="cnstock" id="cnstock_1" value="enabled" />
			<label for="cnstock_1" class="radio-label">开</label>
			<input type="radio" name="cnstock" id="cnstock_0" value="disabled" />
			<label for="cnstock_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>证券时报</dt>
		<dd class="radio">
			<input type="radio" name="stcn" id="stcn_1" value="enabled" />
			<label for="stcn_1" class="radio-label">开</label>
			<input type="radio" name="stcn" id="stcn_0" value="disabled" />
			<label for="stcn_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>同花顺</dt>
		<dd class="radio">
			<input type="radio" name="jqka" id="jqka_1" value="enabled" />
			<label for="jqka_1" class="radio-label">开</label>
			<input type="radio" name="jqka" id="jqka_0" value="disabled" />
			<label for="jqka_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>全天候科技</dt>
		<dd class="radio">
			<input type="radio" name="awtmt" id="awtmt_1" value="enabled" />
			<label for="awtmt_1" class="radio-label">开</label>
			<input type="radio" name="awtmt" id="awtmt_0" value="disabled" />
			<label for="awtmt_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>金融科技</dt>
		<dd class="radio">
			<input type="radio" name="fnlive" id="fnlive_1" value="enabled" />
			<label for="fnlive_1" class="radio-label">开</label>
			<input type="radio" name="fnlive" id="fnlive_0" value="disabled" />
			<label for="fnlive_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>智通财经</dt>
		<dd class="radio">
			<input type="radio" name="zhitong" id="zhitong_1" value="enabled" />
			<label for="zhitong_1" class="radio-label">开</label>
			<input type="radio" name="zhitong" id="zhitong_0" value="disabled" />
			<label for="zhitong_0" class="radio-label">关</label>
		</dd>
	</dl>
	
    <h1>公告抓取</h1>
    <dl>
		<dt>巨潮资讯</dt>
		<dd class="radio">
			<input type="radio" name="cninfo" id="cninfo_1" value="enabled" />
			<label for="cninfo_1" class="radio-label">开</label>
			<input type="radio" name="cninfo" id="cninfo_0" value="disabled" />
			<label for="cninfo_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl>
		<dt>证监会</dt>
		<dd class="radio">
			<input type="radio" name="csrc" id="csrc_1" value="enabled" />
			<label for="csrc_1" class="radio-label">开</label>
			<input type="radio" name="csrc" id="csrc_0" value="disabled" />
			<label for="csrc_0" class="radio-label">关</label>
		</dd>
	</dl>
	<dl style="margin-bottom:20px;">
		<dt>东方财富</dt>
		<dd class="radio">
			<input type="radio" name="eastmoney" id="eastmoney_1" value="enabled" />
			<label for="eastmoney_1" class="radio-label">开</label>
			<input type="radio" name="eastmoney" id="eastmoney_0" value="disabled" />
			<label for="eastmoney_0" class="radio-label">关</label>
		</dd>
	</dl>
	<input type="submit" value="保存" class="submit" />
</form>
<script type="text/javascript" src="{sp:C('cdnHost')}/static/lib/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
var spider={sp:json_encode($spider)};
for(var i in spider){
	$("input[name=\""+i+"\"][value=\""+spider[i]+"\"]").attr("checked","checked");
}
</script>
</body>
</html>
